All Questions
8 questions
1vote
1answer
88views
[Spring Boot][REST] Design Pattern Best Practice (Single Entity, multiple business logic implementations)
I have some problems regarding best-practice design between data source layer(Entity), domain layer(Service) and presentation layer (controller): I have one entity with a type field in the database to ...
1vote
2answers
1kviews
Using Factory Design Pattern in Rest Controller of Spring
I used factory design pattern to identify the service according to the enum that comes from the api uri as request param. Everything seems okay according to me but cannot be sure if I used it right. <...
-1votes
1answer
81views
Using Factory Design Pattern in Spring [closed]
I organized the factory design pattern but I'm not sure if I used it right or wrong. Here's my data model; ...
2votes
2answers
680views
Loan application service based on user credit score
The following microservice is just handling loan application and response the result of the application is accepted or rejected. It is part of my assignment for an interview. The project description ...
-3votes
1answer
53views
Some way to create factory pattern for spring application [closed]
I created this code ...
1vote
1answer
51views
Convert automatically into a centralized bean for multiple domain objects
I am creating a project which will respond to collect multiple bean object, save it to the database and return the status of the transaction. There can be multiple objects that can be sent from the ...
0votes
1answer
150views
Refactoring service class which communicates with external API
Below is the class definition which I created as a POC for some project, at present the class does too much thing and I don't know how to what would be a good design i.e. which object to use as DI etc....
1vote
1answer
335views
Class Design : Parsers for different file type and ParserFactory
I have come up with a class design for parsers (for xml,csv etc) and parser factory. I will be using it in my project.I will be configuring these as beans in the spring context file. I would like to ...